package com.mf.model.pojomapper;

import java.util.List;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import com.mf.model.po.RegisterPo;
import com.mf.model.vo.RegisterVo;

/**
 * POJO相互转换器
 */
@Mapper(componentModel = "spring")
public interface RegisterPojoConverter {

    @Mappings({
            @Mapping(source = "group" , target = "groupName"),
    })
    RegisterPo toPo(RegisterVo registerVo);

    @Mappings({
            @Mapping(source = "groupName" , target = "group"),
    })
    RegisterVo toVo(RegisterPo registerPo);

    @Mappings({})
    List<RegisterVo> toVos(List<RegisterPo> registerPos);

    @Mappings({})
    List<RegisterPo> toPos(List<RegisterVo> registerVos);

}

